package com.company;

public class Main {


    public static void main(String[] args) {

        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.insert(5);
        binarySearchTree.insert(2);
        binarySearchTree.insert(4);
        binarySearchTree.insert(7);

        System.out.println(binarySearchTree.remove(5));
        System.out.println();
    }
}
